;;(require 'xgtags)
;; load up abbrevs for these modes
;;(add-to-list 'load-path "/scratch/emacs/share/emacs/23.1.50/lisp/cedet/common")
;;(require 'cedet)
;;(semantic-mode t)
;; (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
;;                                   global-semanticdb-minor-mode
;;                                   global-semantic-idle-summary-mode
;;                                   global-semantic-mru-bookmark-mode))
;; (require 'semantic/analyze/refs)

;;(defadvice push-mark (around semantic-mru-bookmark activate)
;;  "Push a mark at LOCATION with NOMSG and ACTIVATE passed to `push-mark'.
;;If `semantic-mru-bookmark-mode' is active, also push a tag onto
;;the mru bookmark stack."
;;  (semantic-mrub-push semantic-mru-bookmark-ring
;;                      (point)
;;                      'mark)
;;  ad-do-it)

;; (defun semantic-ia-fast-jump-back ()
;;   (interactive)
;;   (if (ring-empty-p (oref semantic-mru-bookmark-ring ring))
;;       (error "Semantic Bookmark ring is currently empty"))
;;   (let* ((ring (oref semantic-mru-bookmark-ring ring))
;;          (alist (semantic-mrub-ring-to-assoc-list ring))
;;          (first (cdr (car alist))))
;;     (if (semantic-equivalent-tag-p (oref first tag) (semantic-current-tag))
;;         (setq first (cdr (car (cdr alist)))))
;;     (semantic-mrub-switch-tags first)))

;; (defun semantic-ia-fast-jump-or-back (&optional back)
;;   (interactive "P")
;;   (if back
;;       (semantic-ia-fast-jump-back)
;;     (semantic-ia-fast-jump (point))))
;; (define-key semantic-mode-map [C-f12] 'semantic-ia-fast-jump-or-back)
;; (define-key semantic-mode-map [S-f12] 'semantic-ia-fast-jump-back)
;; (define-key semantic-mode-map [M-S-f12] 'semantic-analyze-proto-impl-toggle)

;;(require 'semantic)
;;(require 'senator)
;;(require 'srecode)
;;(global-ede-mode t)
;; (defun my-semantic-hook ()
;;   (imenu-add-to-menubar "TAGS"))
;; (add-hook 'semantic-init-hooks 'my-semantic-hook)
                                        ;(setq semantic-dump-parser-warnings t)
;;(setq semantic-lex-debug t)
;;(setq semantic-lex-spp-describe t)
;;(autoload 'senator-try-expand-semantic "senator")
(setq semanticdb-project-roots 
      (list
       (expand-file-name "/")))

 ;; '(semantic-default-submodes (quote (global-semantic-decoration-mode global-semanticdb-minor-mode)));;global-semantic-idle-completions-mode  
 ;; '(semantic-dump-parse t)
 ;; '(semantic-lex-debug-analyzers t)
 ;; '(semantic-matlab-dependency-system-include-path (quote ("/matlab/matlab/toolbox/matlab/funfun" "/matlab/matlab/toolbox/matlab/general")))
 ;; '(global-semantic-highlight-edits-mode nil nil (semantic/util-modes))
 ;; '(global-semantic-highlight-func-mode t nil (semantic/util-modes))
 ;; '(global-semantic-show-parser-state-mode t nil (semantic/util-modes))
 ;; '(global-semantic-show-unmatched-syntax-mode t nil (semantic/util-modes))
 ;;'(global-semantic-idle-scheduler-mode t)
 ;; '(global-semantic-idle-tag-highlight-mode t nil (semantic/idle))
 ;; '(global-semantic-stickyfunc-mode t nil (semantic/util-modes))
 ;; '(global-senator-minor-mode t nil (semantic/senator))

;;(require 'semantic/fw)
;;(require 'semantic-tag-folding)
;; (setq semantic-default-submodes t)



 ;; '(semantic-c-dependency-system-include-path (quote ("/usr/include" "/usr/include/boost" "/usr/include/qt4" "/usr/include/gtk-2.0" "/scratch/programming/ctest/include" "/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4" "/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/include" "/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/include/g++-v4/x86_64-pc-linux-gnu" "/opt/intel/Compiler/11.1/056/mkl/include" "/opt/intel/Compiler/11.1/056/ipp/include" "/opt/cuda/include")))
